package com.txts.road.app.message.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.txts.road.app.message.model.entity.MessageEntity;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.txts.road.app.message.model.query.MessageQuery;
import com.txts.road.app.message.model.vo.MessageVO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 消息Mapper接口
 *
 * @author baoyr
 * @since 2025-07-17 10:46
 */
@Mapper
public interface MessageMapper extends BaseMapper<MessageEntity> {

    /**
     * 获取消息分页数据
     *
     * @param page 分页对象
     * @param queryParams 查询参数
     * @return {@link Page<MessageVO>} 消息分页列表
     */
    Page<MessageVO> getMessagePage(Page<MessageVO> page, MessageQuery queryParams);

}
